package cn.edu.sdjzu.xg.eagle.entity;

import lombok.*;

@NoArgsConstructor
@AllArgsConstructor
@ToString
@Getter
@Setter
public class Teacher implements Comparable <Teacher>{
    private Long id;          // 对应数据库中的 id 字段
    private String name;     // 对应数据库中的 name 字段
    private String no;       // 对应数据库中的 no 字段
    private Department department;

    // 带参构造函数
    public Teacher(Long id, String name, String no) {
        this.id = id;
        this.name = name;
        this.no = no;
    }

    public Teacher(Long id, String name, Department department) {
        this.id = id;
        this.name = name;
        this.department = department;
    }

    @Override
    public int compareTo(Teacher o) {
        return 0;
    }
}
